<?php

use Illuminate\Database\Seeder;
use App\User;

class UsersSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        //
        //配合工厂执行数据批量填充
        factory(\App\User::class,10)->create();
        //将id为1的数据修改成自己的数据库
        $user = User::find(1);
        $user->name='马睿';
        $user->email = '1983008553@qq.com';
        $user->is_admin =1;
        $user->save();

    }
}
